package com.jadows.tdog.message.action;

import com.jadows.tdog.constants.GlobalActions;
import com.jadows.tdog.message.WsReqWrapper;
import com.jadows.tdog.message.annotations.Action;
import com.jadows.tdog.message.details.AbstractMessage;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 巡检调度相关
 *
 * @author taojiacheng
 */
@Component
@RequiredArgsConstructor
@Slf4j
public class WSMDCActionsHandler {

    /**
     * 心跳消息处理
     */
    @Action(GlobalActions.MDC_HEARTBEAT)
    public void heartbeat(WsReqWrapper<AbstractMessage> reqWrapper) {
        log.debug("心跳消息处理 {}", reqWrapper);
    }

}
